import { stringify } from 'qs';
import request from '../utils/request';

export async function saveOrUpdateAutoMenu(params) {
  return request(
    `/api/web/autoMenu/saveOrUpdateAutoMenu?${stringify(params)}`,{
    method: 'POST',
    body: {
      ...params,
      method: 'post',
    },
  });
}

export async function getAutoMenuDetail(params) {
  return request(`/api/web/autoMenu/getAutoMenuDetail?${stringify(params)}`);
}
